package com.qr.service.impl;

import com.qr.service.AccountSetService;

import java.util.Date;

/**
 * set注入
 */
public class AccountSetServiceImpl implements AccountSetService {

    private String name;
    private Integer age;
    private Date birthday;

    /**
     * 提供set方法，xml中注入的时候要的是去掉set,并且首字母小写的项
     *      setName()   去掉set    Name   首字母小写     name
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public void save() {
        System.out.println("==============================>set方式<======================================");
        System.out.println(name + age + birthday);
    }
}
